#include <stdio.h>
int main()
{
    char cmd;
    while(cmd = getchar()){
        if(cmd == 'q'){
            break;
        }
        printf("get char %c\n", cmd);
    }

    return 0;
}